home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / Dev / powerd / lib / powerd_lib.lha / PowerD / Ellipse.ass < prev    next >
Encoding:
Text File  |  2000-02-02  |  404 b   |  28 lines

  1. ; d0 x0
  2. ; d1 y0
  3. ; d2 w
  4. ; d3 h
  5. ; d4 colour
  6.  
  7.     xdef    _Ellipse
  8.  
  9. _Ellipse    movem.l    a0-a1/a6,-(a7)
  10.     tst.l    _stdrast
  11.     beq.s    .norast
  12.     move.l    _stdrast,a1
  13.     move.l    _GfxBase,a6
  14.     tst.l    d4
  15.     bge.s    .goon
  16.     move.l    coloura,d4
  17. .goon    movem.l    d0-d1,-(a7)
  18.     move.l    d4,d0
  19.     jsr    -342(a6)        ; SetAPen()
  20.     movem.l    (a7)+,d0-d1
  21.     jsr    -180(a6)        ; DrawEllipse()
  22. .norast    movem.l    (a7)+,a0-a1/a6
  23.     rts
  24.  
  25.     xref    coloura
  26.     xref    _GfxBase
  27.     xref    _stdrast
  28.